/*******************************************************************************
 * Package: com.practice.ex
 * Type:    ServiceErrorCode
 * Date:    2023/9/26 13:37
 *
 * Copyright (c) 2023 HUANENG GUICHENG TRUST CORP.,LTD All Rights Reserved.
 *
 * You may not use this file except in compliance with the License.
 *******************************************************************************/
package com.practice.ex;

/**
 * TODO your comment
 *
 * @author Masiyu
 * @date 2023/9/26 13:37
 */
public enum ServiceErrorCode {
    OK(200),
    ERR_BAD_REQUEST(400),
    ERR_NOT_FOUND(404),
    ERR_LOGIN_FAILED(405),
    WARN_USER_EXIST(501)
    ;
    
    private Integer code;
    
    ServiceErrorCode(Integer code) {
        this.code = code;
    }
    
    public Integer getCode() {
        return code;
    }
}
